/**
 * Created by forcht on 2018/5/18.
 */
public class Solution {
    public String strStr(String haystack, String needle) {
        int i = haystack.indexOf(needle);
        if (i!=-1)return haystack.substring(i);
        return null;
    }

    public static void main(String[] args) {
        Solution solution=new Solution();
        System.out.println(solution.strStr("abcsvc","cs"));
    }
}
